package com.wxyzz.cem.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.wxyzz.cem.pojo.enums.BalanceApplyStatus;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * <p>
 * 班费申请
 * </p>
 *
 * @author xc
 * @since 2024-07-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class BalanceApply implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 记录ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 申请金额
     */
    private Float amount;

    /**
     * 申请时间
     */
    private Timestamp applyTime;

    /**
     * 审核时间
     */
    private Timestamp auditTime;

    /**
     * 申请原因
     */
    private String reason;

    /**
     * 状态(0：审核中，1：不同意，2：同意，3：撤销)
     */
    private BalanceApplyStatus status;

    /**
     * 审核时班费金额
     */
    private Float beforeClassBalance;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 收款二维码图片
     */
    private String receiveImageName;

    /**
     * 放款截图
     */
    private String loanImageName;
    
    /**
     *  班级ID
     */
    private Integer classId;

    /**
     * 用户信息
     */
    @TableField(exist = false)
    private User user;
}
